# -*- encoding=utf8 -*-
        
__author__ = "Bryan.Chen"
__desc__=""
        
from airtest.core.api import *
        
auto_setup(__file__)
        
from poco.drivers.std import StdPoco
poco = StdPoco()
        
using("../FlowTest.air")
import FlowTest
        
class GoldBean_WaitEnterJDCLobby(FlowTest.BaseTestCase):
    def __init__(self):
        print("%s __init__" % (__file__))
        
    def runTest(self, args):
        print("%s runTest" % (__file__))

        isTimeOut = False
        time1 = time.time()
        while True:
            if poco("JDCLobbyScene").exists():
                break
            
            if time.time() - time1 > 5 * 60:
                isTimeOut = True
                break


        if isTimeOut:
            return False

        return True
        
_instance = GoldBean_WaitEnterJDCLobby()
runTest = _instance.runTest